{% extends "simgenex/base_simgenex.html" %}
{%block center%}
<div class="edit_form">
    <h2>Upload new Sigenex program</h2>
    <form id="uploadSgx" action="uploadSgx" method="post" class="edit" enctype="multipart/form-data">
        {% csrf_token %}
        <fieldset><legend></legend>
            <label>Upload file:</label>
            <span class="helptext">Choose the file contains sigenex code, e.g "simgenex_program.txt".</span>
            <input type="file" name="sgx_file"/>

            <label>Name:</label>
            <span class="helptext">Name of the SimGenex program.</span>
            <input type="text" name="name"/>
            <label>Description:</label>
            <span class="helptext">Description of the Simgenex program.</span>
            <textarea name="desc" cols="40" rows="5"></textarea>
            <label> Target Transsys Program </label>
            <span class="helptext">Select the transsys program which you want to apply the experiment (You can select more than one transsys program)</span>
            <select multiple="multiple" name="target_tp" >
                {% for tsp in request.session.ts_programs %}
                <option value="{{tsp.tp.name}}">{{tsp.tp.name}}</option>
                {% endfor %}
            </select>

        </fieldset>

        <button type="submit" name="submit" > Submit</button>

    </form>

</div>
{% endblock %}